{%extends file="wap_common/page/layout.tpl"%}

{%block name="head-static"%}
    {%require name="wap_main:static/wallet/wallet.js"%}
    {%require name="wap_main:static/wallet/wallet.less"%}
    <script>
        P.data({%json_encode($data)%});
    </script>
{%/block%}

{%block name="layout-body"%}
    <div class="main-wallet">
        <div class="block">
            <div class="title">账户余额</div>
            <ul class='asset-list'>
                <li>
                    <span>可用资金</span>
                    <span class="money">￥{%$data.wallet.canwithdraw|format_amount%}</span>
                </li>
                <li>
                    <span>冻结资金</span>
                    <span class="money">￥{%$data.wallet.freeze|format_amount%}</span>
                </li>
            </ul>
        </div>
        <div style="margin-bottom: 20px;text-align: right">
            <a href="/wap/gift" style="color:#ff9614">查看我的红包>></a>
        </div>

        <div class="block">
            <div class="title">真融宝活期</div>
            <div class="profit"><span class="value">￥{%$data.demand.yesterday_return|format_amount:4%}</span>昨日收益</div>
            <ul class='asset-list'>
                <li>
                    <span>收益</span>
                    <span class="money">￥{%$data.demand.return|format_amount%}</span>
                </li>
                <li>
                    <span>当前持有</span>
                    <span class="money">￥{%$data.demand.amount|format_amount%}</span>
                </li>
            </ul>
        </div>


        <div class="block">
            <div class="title">定期(一个月)</div>
            <ul class='asset-list'>
                <li>
                    <span>预期收益</span>
                    <span class="money">￥{%$data.term1.expect_return|format_amount%}</span>
                </li>
                <li>
                    <span>当前持有</span>
                    <span class="money">￥{%$data.term1.amount|format_amount%}</span>
                </li>
            </ul>
        </div>

        <div class="block">
            <div class="title">定期(三个月)</div>
            <ul class='asset-list'>
                <li>
                    <span>预期收益</span>
                    <span class="money">￥{%$data.term3.expect_return|format_amount%}</span>
                </li>
                <li>
                    <span>当前持有</span>
                    <span class="money">￥{%$data.term3.amount|format_amount%}</span>
                </li>
            </ul>
        </div>
        <div class="block">
            <div class="title">定期(六个月)</div>
            <ul class='asset-list'>
                <li>
                    <span>预期收益</span>
                    <span class="money">￥{%$data.term6.expect_return|format_amount%}</span>
                </li>
                <li>
                    <span>当前持有</span>
                    <span class="money">￥{%$data.term6.amount|format_amount%}</span>
                </li>
            </ul>
        </div>
    </div>
{%/block%}
